public class StormDistCalc {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		java.util.Scanner s = new java.util.Scanner(System.in);
		double time = -1;
		while (time == -1) {
			System.out
					.print("Enter the number of seconds between lightening and thunder: ");
			time = s.nextDouble();
		}
		System.out
				.println("If the number of seconds between a lightening flash and then");
		System.out.println("sound of thunder is " + time
				+ ", then the storm is " + time / 5 + " miles away.");
	}

}
